<!DOCTYPE html>
<html dir="rtl">
<head>
	<meta charset="utf-8" />
	<title>显示随机格言</title>
	<script type="text/javascript">
	function getQuote(){
		qs=new Array(4);
		ss=new Array(4);
		
		qs[0]="hello world";
		ss[0]="world";
		qs[1]="hello hopy";
		ss[1]='hopy';
		qs[2]="hello bbs";
		ss[2]="bbs";
		qs[3]="hello kinds";
		ss[3]="kinds";
		
		i = Math.floor(Math.random()*qs.length);
		document.write("<dl style='background-color:lightpink'>\n");
		document.write("<dt>"+"<em>"+qs[i]+"</em></dt>\n");
		document.write("<dd> -----"+ss[i]+"</dd>\n");
		document.write("<dl>\n");
	}
	</script>
</head>
<body>
	<h1>Quotable Quotes</h1>
	<p>Following is a random quotable quote. To see a new quote just
	reload this page.</p>
	<script type="text/javascript">
		getQuote();
	</script>
	<img id='product_img' src='no_path' alt='see me?' />
	<a href="#" onmouseover="document.product_img.src='logo.jpg';" onmouseout="
		document.product_img.src='no_path';">
		show some pic</a>
		<select>
			<option value="yes">Yes</option>
			<option value="no">No</option>
		</select>
		<input type='submit' style="width:100px;height:300px;" value="hello" />
</body>
</html>